/*
[Contents]

	0-   Global
	1-   Topbar
	2-   Header
	3-   Message Box
	4-   Main Container
	4.1- Main
	4.2- Sidebar
	5-   Footer
	6-   jQuery UI
*/

/* =0 Global
---------------------------------------------------------------------------------------------------------------------*/

/* =1 TopBar
---------------------------------------------------------------------------------------------------------------------*/
#topbar {
	border-bottom: 1px solid #CCC;
}
#topbar li {
	float: left;
	position: relative;
	margin-right: 5px;
	padding: 5px;
}
#topbar li.has-sub {
	background: url(images/arrow.png) no-repeat right center;
	padding-right: 12px;
}
#topbar li ul {
	background: #FFF;
	border: 1px solid #CCC;
	border-top: none;
	display: none;
	position: absolute;
	top: 24px;
}
#topbar li:hover ul {
	display: block;
}
#topbar a {
	color: #00F;
	text-decoration: underline;
	white-space: nowrap;
}
#topbar li.current > a {
	color: #000;
	font-weight: bold;
	text-decoration: none;
}
#topbar strong {
	font-weight: bold;
}
#topbar ul.right {
	margin-top: 5px;
}
#topbar ul.right li {
	border-right: 1px solid #000;
	float: left;
	line-height: 1;
	padding: 0 8px;
}
#topbar ul.right li.last {
	border-right: 0;
}

/* =2 Header
---------------------------------------------------------------------------------------------------------------------*/
#header {
	background: url(images/header-bg.png) repeat-x left bottom;
}
.logo {
	float:left;
	margin:10px 0 10px 25px;
}
/* =3 Message Box
---------------------------------------------------------------------------------------------------------------------*/
.message-box {
	text-align: center;
}
.message-box p {
	border: 1px solid #CCC;
	display: inline-block;
	font-weight: bold;
	padding: 5px 10px;
	
	/* Do Rounding */
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.info p {
	color: #FFF;
	background-color: #008000;
}
.warning p {
	color: #FFF;
	background-color: #FFA500;
}
.error p {
	color: #FFF;
	background-color: #FF0000;
}

/* =4 Main Container
---------------------------------------------------------------------------------------------------------------------*/

/* =4.1 Main
---------------------------------------------------------------------------------------------------------------------*/
/* Title
---------------------------------------------------------------*/
.inner-main > .title {
	display: inline-block;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.inner-main > .title a {
	font-size: 12px;
	font-weight: normal;
	margin-left: 5px;
}
.inner-main > .title span {
	color: #555;
}

/* Search Panel
---------------------------------------------------------------*/
.search-panel {
	float: right;
	position: relative;
}
.search-panel td {
	padding-left: 5px;
}
.search-form {
	background:#FFF;
	border: 1px solid #CCC;
	display: inline-block;
	padding: 0 1px;
	
	/* Do Rounding */
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.search-form input[type="text"] {
	border: none;
}
.search-form button {
	background: url(images/search.png) no-repeat center center;
	border: none;
	cursor: pointer;
	height: 20px;
	text-indent: -5000px;
	width: 20px;
}
.search-form button:hover {
	background: url(images/search.png) no-repeat center center;
}
.search-panel a.more {
	background: url(images/arrow-down.png) no-repeat right center;
	display: inline-block;
	margin-right: 3px;
	padding-right: 10px;
}
.search-panel a.more.active {
	background-image: url(images/arrow-up.png);
	position: relative;
	z-index: 3;
}
.more-search {
	background: #FFF;
	border: 1px solid #CCC;
	margin: 0;
	padding: 10px;
	position: absolute;
	right: 0;
	top: 0;
	z-index:2;
}

/* Tabs
---------------------------------------------------------------*/
.tabs{
	margin-top:10px;
}
.tabs li {
	float: left;
	margin-left: 10px;
}
.tabs a {
	background: #EFEFEF;
	border: 1px solid #CCC;
	border-bottom: 0;
	display: block;
	font-weight: bold;
	height: 25px;
	line-height: 25px;
	padding: 0 5px;
	
	/* Do Rounding */
	border-radius: 5px 5px 0 0;
	-moz-border-radius: 5px 5px 0 0;
	-webkit-border-radius: 5px 5px 0 0;
}
.tabs li.current a {
	background: #666;
	border-color: #666;
	color: #FFF;
	text-decoration: none;
}
.tabs li.disabled a {
	background: EEE;
	color: #999;
	cursor: default;
	font-weight: normal;
	text-decoration: none;
}
.tab-content {
	border: 1px solid #CCC;
	border-top: 3px solid #666;
	margin-bottom:10px;
	padding: 10px;
}

.tab-content div.common-form:first-child {
	margin-top: 0;
}

.tab-content div.table-container:first-child {
	margin-top: 0;
}

/* Steps
---------------------------------------------------------------*/
.step {
	border-top: 1px solid #333;
	margin: 5px 0 20px;
}
.step ul{
	overflow:hidden;
}
.step li {
	color: #999;
	float: left;
	font-size: 13px;
	margin-right: 10px;
	padding-top: 5px;
}
.step li.separator {
	color: #333;
}
.step li.current {
	background: url(images/arrow_down.gif) no-repeat center top;
	color: orange;
	font-weight: bold;
}
.step li.current a{
	color: orange;
	cursor:default;
	text-decoration:none;
}
.step-content .common-form {
	margin-top: 0;
}

/* Command
---------------------------------------------------------------*/
.command {
	background: url(images/command-bg.png) repeat-x;
	border: 1px solid #DDD;
	margin-top:10px;
	padding: 8px 5px;
	
	/* Do Rounding */
	border-radius: 5px 5px 0 0;
	-moz-border-radius: 5px 5px 0 0;
	-webkit-border-radius: 5px 5px 0 0;
}
.command .button {
	float: left;
	margin-right: 5px;
}
.command td {
	padding-right: 5px;
}

/* Tabel Container
---------------------------------------------------------------*/
.table-container {
	margin-bottom:10px;
}
.table-container table {
	border: 1px solid #CCC;
	clear: both;
	margin-bottom:10px;
	width: 100%;
}
.table-container .scroll-table{
	margin-bottom:10px;
	overflow:auto;
}
.table-container .scroll-table table{
	margin:0;
}
.table-container caption {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 5px;
}

.table-container th {
	background: #EAEAEA;
	border: 1px solid #CCC;
	font-weight: bold;
	padding: 5px;
	white-space:nowrap;
	width:auto;
}
.table-container th select {
	font-weight: normal;
}

/* Th Width */
.table-container th.checkbox {
	width: 13px;
}
.table-container th.common {
	width: 130px;
}
.table-container th.action {
	text-align: center;
	width: 36px;
}
.table-container th.status {
	text-align:center;
}
.table-container th.status-item {
	text-align:center;
	width:60px;
}
.table-container th.contact-status {
	width: 70px;
}
.table-container th.date {
	width: 90px;
}
.table-container th.contacts {
	width: 50px;
}
.table-container th.action-email {
	text-align: center;
	width: 210px;
}
.table-container th.numeral {
	text-align: right;
}
.table-container th span{
	float:left;
}
.table-container th a.tooltip-link{
	margin:0 0 0 5px;
}
.table-container th a.sort{
	background:url(images/sort_asc.gif) no-repeat right center;
	color:#555;
	padding-right:15px;
}
.table-container th a.sort.desc{
	background-image:url(images/sort_desc.gif);
}

/* Table Body */
.table-container tbody tr.even td {
	background: #F6F6F6;
}
.table-container tbody tr.todo {
	font-weight:bold;
}
.table-container tbody td {
	border-bottom: 1px solid #DDD;
	padding: 3px 5px;
}
.table-container tbody td > span {
	float:left;
	line-height:20px;
	margin-right:5px;
}
.table-container tbody tr:hover td {
	background-color: #EDF0F8;
}
.table-container tbody td.action {
	text-align: center;
	width: 20px;
}
.table-container td.numeral {
	text-align: right;
}
.table-container tbody td.status {
	font-weight:bold;
}
.table-container tbody tr:hover td {
	background: #FCF5DD;
}
.table-container td a {
	color: #333;
	line-height: 16px;
	text-decoration: underline;
}
.table-container td input.quantity{
	width:44px;
}
.table-container tbody strong {
	font-weight: bold;
}
.table-container td.diagram div {
	border: 1px solid #CCC;
	position: relative;
}
.table-container td.diagram span.percentage {
	background: none;
	position: absolute;
	text-align: center;
	width: 100%;
}
.table-container td.diagram span {
	background: #CBCBCB;
	display: block;
	height: 16px;
}
/* Table Foot */
.table-container tfoot th {
	background: #EDEDED;
	padding: 3px 5px;
}
.table-container tfoot td {
	background:#EFEFEF;
	font-weight:bold;
	padding: 3px 5px;
}
.table-container tfoot select {
	float: none;
}

/* Import Table */
.import-table {
	border: 1px solid #CCC;
	overflow: auto;
}
.import-table table {
	border: 0;
}

/* Report Table */
.report-table {
	margin: 10px 0 0;
}
.report-table td {
	vertical-align: middle;
}
.report-table th.link {
	width: 400px;
}
.report-table th.number {
	text-align: right;
	width: 60px;
}
.report-table td {
	padding: 5px 3px;
}
.report-table td.number {
	text-align: right;
}

/* Pagination */
.table-container .pagination{
	float:right;
	margin-top:10px;
}

.check-label{
	height:16px;
	line-height:16px;
}

/* Pagination
---------------------------------------------------------------*/
.pagination {
	color: #999;
	line-height: 23px;
}
.pagination span, .pagination a {
	font-family: "Lucida Grande" , Verdana, Geneva, sans-serif;
	padding: 3px 6px;
	
	/* Do Rounding */
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
.pagination a {
	background: #EEE;
	border: 1px solid #CCC;
	font-weight: bold;
	text-decoration: none;
}
.pagination a:hover {
	border-color: #D54321;
	color: #D54321;
}
.pagination span {
	background: #DFDFDF;
	border: 1px solid #CCC;
	color: #333;
}

/* support
---------------------------------------------------------------*/
.support-block {
	border-bottom:3px solid #CCC;
	padding:10px;
}
.support-block.admin-block{
	color:#999;
}
.support-block .support-info{
	border-bottom:1px dashed #CCC;
	margin-bottom:10px;
	padding-bottom:5px;
}
.support-block .title{
	display:inline;
}
.support-block span{
	color:#999;
}

/* =4.2 Sidebar
-------------------------------------------------------------------------------------------------------*/
/* Menu
---------------------------------------------------------------*/
.menu {
	background: #F8F8F8;
	border: 1px solid #CCC;
	margin-bottom:20px;
	padding: 5px;
}
.menu li {
	margin-bottom: 3px;
}
.menu a {
	border-bottom: 1px solid #CCC;
	color: #000;
	display: block;
	font-size: 13px;
	font-weight: bold;
	height: 20px;
	line-height: 20px;
	overflow: hidden;
	padding-left: 5px;
	white-space: nowrap;
}
.menu li.current a {
	margin-bottom: 1px;
	border-bottom-width: 0;
	
	/* Do Rounding */
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}
.menu li.current > a {
	background-color: #EEE;
	text-decoration: none;
}
.menu li ul {
	display: none;
}
.menu li.current ul {
	display: block;
	margin: 2px 0 0 15px;
}
.menu li.current ul a,
.menu li.current ul a:hover {
	background-image: none;
	border-bottom-width: 0;
	font-size: 11px;
	font-weight: normal;
	padding-left: 10px;
}

.menu li.Product > a,
.menu li.Order > a,
.menu li.Shop > a,
.menu li.Customers > a,
.menu li.Service > a,
.menu li.System > a,
.menu li.Report > a{
	background-image:url(images/menu.png);
	background-position:left top;
	background-repeat:no-repeat;
	padding-left:20px;
}
.menu li.Order > a{
	background-position:left -20px;
}
.menu li.Shop > a{
	background-position:left -40px;
}
.menu li.Customers > a{
	background-position:left -60px;
}
.menu li.Service > a{
	background-position:left -80px;
}
.menu li.System > a{
	background-position:left -100px;
}
.menu li.Report > a{
	background-position:left -120px;
}

/* =5 Footer
---------------------------------------------------------------------------------------------------------------------*/
#footer {
	border-top: 1px dotted #CCC;
	padding: 5px;
}
#footer p {
	text-align: center;
}

/* =6 jQuery UI
---------------------------------------------------------------------------------------------------------------------*/
.ui-widget{
	font: 12px/1.2 Arial,Helvetica,sans-serif !important;
}